package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author : 洪俊新
 * @date : 2021/9/14 16:27
 * @description:
 */
public class PhpVideoCommentRes {
    /**
     * 主键
     * 评论id
     * isnull 1
     */
    private Long id;

    /**
     * 评论人userId
     * isnull 0
     */
    private Long userId;
    /**
     * 评论等级[ 1 一级评论 默认 ，2 二级评论]
     * isnull 0
     */
    private Integer commentLevel;
    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    private Integer targetId;

    /**
     * 商品评论
     * isnull 0
     */            private String content;
    /**
     * 删除标志:0-未删除.1-删除
     * isnull 0
     */            private Object del;

    /**
     * 显示状态 0-隐藏 1-显示
     * isnull 0
     */            private Object status;
    /**
     * 创建时间
     * isnull 0
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 图片数组
     * isnull 0
     */            private String imgList;

    /**
     * 一级评论者的昵称
     */
    private String nickname;
    /**
     * 一级评论者的头像
     */
    private String avatar;

    /**
     * 二级评论列表
     */
    private List<PhpSecondComment> secondComments;
    /**
     * 某评论id下的二级评论的总数量
     */
    private Integer secondCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Object getDel() {
        return del;
    }

    public void setDel(Object del) {
        this.del = del;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<PhpSecondComment> getSecondComments() {
        return secondComments;
    }

    public void setSecondComments(List<PhpSecondComment> secondComments) {
        this.secondComments = secondComments;
    }

    public Integer getSecondCount() {
        return secondCount;
    }

    public void setSecondCount(Integer secondCount) {
        this.secondCount = secondCount;
    }
}
